<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

class BaseBanner extends Model
{

    const STATUS_SHOW = 1;

    const STATUS_HIDE = 0;

    protected ?string $table = 'base_banner';


    public function applet()
    {
        return $this->hasOne(Playlet::class, 'id', 'applet_id')->withTrashed()->select('id','name');
    }

}
